STEP 8: Each time we change the list, we'll need to update the display.

  • Click on . Drag Update Display into your loop.
  • Change the name in front from my_display to roll_display.
  • Change the argument from my_var to rolls.
  • Click Run to watch the dice roll 10 times! When ready, click Submit and Next to move on.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)